package com.rmi;

import java.io.IOException;
import java.lang.reflect.Proxy;
import java.net.Socket;

/**
 * Created with LXD
 *
 * @author:Luhui
 * @qq:729913162
 * @Date:2018-08-25
 * @Time:0:40
 */
public class Server {
    public static void main(String[] args) throws Exception {

        SkeletonProxy skeletonProxy = new SkeletonProxy();
        skeletonProxy.start();
        IHello hello = (IHello)Proxy.newProxyInstance(IHello.class.getClassLoader(), new Class[]{IHello.class}, new StubProxy());
        hello.hello("luhui");
    }
}
